package cz.worsik.android.test.rideshare.model;

import android.content.res.Resources;
import android.graphics.drawable.Drawable;

import cz.worsik.android.test.rideshare.constants.EMenuItem;

/**
 * Created by 231260 on 3.1.14.
 */
public class DrawerItem {

    private String text;
    private String summary;
    private Drawable icon;

    private String title;
    private boolean isList;

    public DrawerItem(EMenuItem menuItem, Resources res) {
        this.text = menuItem.getText(res);
        this.summary = menuItem.getSum(res);
        this.icon = menuItem.getIcon(res);
        this.title = menuItem.getTitle(res);
        this.isList = menuItem.isList();
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Drawable getIcon() {
        return icon;
    }

    public void setIcon(Drawable icon) {
        this.icon = icon;
    }

    public String getTitle() {
        return title;
    }

    public boolean isList() {
        return isList;
    }
}
